package com.cskaoyan.mapper.marketMapper;

import com.cskaoyan.bean.marketBean.MarketCart;
import com.cskaoyan.bean.marketBean.MarketCartExample;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface MarketCartMapper {

    int update_zyl(@Param("productId") BigDecimal productId, @Param("goodsId") Integer goodsId, @Param("number") Short number, @Param("id") Integer id,@Param("userId")Integer userId);

    int updateMarketCart_zyl(@Param("id") Integer id, @Param("checked") Integer checked,@Param("userId")Integer userId);

    long countByExample(MarketCartExample example);

    int deleteByExample(MarketCartExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCart record);

    int insertSelective(MarketCart record);

    List<MarketCart> selectByExample(MarketCartExample example);

    List<MarketCart> selectByExample_zyl(@Param("id") Integer id, @Param("deleted") Boolean deleted);

    MarketCart selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByExample(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByPrimaryKeySelective(MarketCart record);

    int updateByPrimaryKey(MarketCart record);
}
